<template>
  <div>
    <ul class="blogs">
      <li
        v-for="(item, index) in datas"
        :key="index"
        border="0"
        style="cursor: pointer"
      >
        <div class="imgs">
          <img :src="item.img" alt="" />

          <div class="jinr">
            <img src="../../assets/bfs.png" alt="" />
          </div>
        </div>
        <div class="texts">
          <div>
            <span class="biaoq">{{ item.tltle }}</span>
          </div>
          <div class="txtwlog">
            <span class="nickname">SQ</span>
            <div class="rwa">
              <span class="nickname">MV</span>
            </div>

            <div class="nenm">
              <span>{{item.name}}</span>
            </div>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ["newest"],
  data() {
    return {
      datas: this.newest,
    };
  },
  created() {
    // console.log(this.datas);
  },
  filters: {
    ellipsis(value) {
      if (!value) return "";
      if (value.length > 20) {
        return value.slice(0, 20) + "...";
      }
      return value;
    },
  },
};
</script>

<style lang="less" scoped>
.blogs {
  display: flex;
  justify-content: space-between;
  flex-flow: wrap;
  li {
    &:hover {
      background-color: rgba(213, 214, 214, 0.61);
      border-radius: 5px;
    }
    margin-bottom: 20px;
    // height: 120px;
    // border: 1px solid #000;
    flex-basis: 32%;
    display: flex;
    align-items: center;
    .imgs {
      width: 70px;
      position: relative;
      //   border: 1px solid #000;
      display: flex;
      align-items: center;
      img {
        width: 100%;
        height: 100%;
        border-radius: 5px;
      }
      .jinr {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        // bottom: 5px;
        // right: 5px;
        width: 30px;
        height: 30px;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
    .texts {
      margin-left: 10px;
      height: 80%;
    //   border: 1px solid #000;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .biaoq {
        // display: inline;
        // color: rgb(145, 144, 144);
        // border-radius: 3px;
        // border: 1px solid rgb(145, 144, 144);
        // padding: 2px 2px 2px 2px;
      }
      .txtwlog {
        display: flex;
        align-items: center;
        span {
          color: rgb(145, 144, 144);
        }
        display: flex;
        .nickname {
          border: 1px solid rgb(236, 63, 63);
          border-radius: 2px;
          color: rgb(236, 63, 63);
        }
        .nenm{
            margin-left: 15px;
        }
        .bufang {
          margin-left: 5px;
        }
        .rwa {
          margin-left: 5px;
          width: 15px;
          height: 15px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
}
</style>